package com.yusheng.tr.multi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yusheng.tr.common.core.entity.multi.ModelMngEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 模型管理表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-10-02
 */
public interface ModelMngMapper extends BaseMapper<ModelMngEntity> {

    @Select("select *from model_mng where id = #{modelId}")
    ModelMngEntity findByModelId(String modelId);
    @Select("select * from model_mng where parent_id =  #{parentId}")
    List<ModelMngEntity> findParentId(@Param("parentId") String parentId);
}
